<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//用户表社区事件表
class Bbs_behavior_model extends CI_Model{
    function __construct() {
        parent::__construct();
        $this->table = 'bbs_user_behavior';
    }
    //添加事件
    function insert($data){
        $data['create_time'] = time();
        $this->db->insert($this->table,$data);
        return $this->db->affected_rows();
    }
}
